package com.spzx.product.mapper;

import com.spzx.product.api.domain.vo.SkuStockVo;
import com.spzx.product.domain.SkuStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * 商品sku库存表 Mapper 接口
 * </p>
 *
 * @author lee
 * @since 2024-07-13
 */
public interface SkuStockMapper extends BaseMapper<SkuStock> {

    List<SkuStock> getTotalNumAndSkuIdByProductId(Integer id);

    Integer updateSkuStock( List<SkuStock> skuStockList);

    /**
     *
     * @param productSkuIds
     * @return
     */
    List<Long> selectSkuStockId(List<Long> productSkuIds);

    SkuStockVo getSkuStock(Integer skuId);
}
